package Component;
// 滚动条装饰类
public class UnderlineDecorator extends ComponentDecorator {
    public UnderlineDecorator(IComponent component) {
        super(component);
    }

    @Override
    public void display() {
        super.display();
        addUnderline();
    }

    private void addUnderline() {
        System.out.println("添加下划线");
    }
}
